package com.example.anliku.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.example.anliku.entity.Team;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TeamMapper {
    int deleteByPrimaryKey(Integer teamId);

    int insert(Team team);

    int insertSelective(Team team);

    Team selectByPrimaryKey(Integer teamId);

    int updateByPrimaryKeySelective(Team team);

    int updateByPrimaryKey(Team team);

    List<Team> selectAll();

    int insertTeamIdByTeamMemberId(@Param("teamId")Integer teamId,@Param("teamMemberId")String teamMemberId);

    int deleteByTeamIdByTeamMemberId(@Param("teamId")Integer teamId,@Param("teamMemberId")String teamMemberId);

    List<Team> selectByTeamIdByTeamMemberId(@Param("teamId")Integer teamId);

    List<Team> selectteamByteamMemberId(@Param("teamMemberId") String teamMemberId);

    List<Team> selectteamByteamMainId(String teamMainId);

    List<Team> selectAllByTeamMemberId(@Param("teamMemberId")String teamMemberId);

    List<Team> selectAllByTeamId(@Param("teamId")Integer teamId);



}